package facade;

public class Facade {
    public Company openCompany(String name) {
        Company c = new AdminOfIndustry().register(name);

        System.out.println("-----------------------------------------------");

        String bankAccount = new Bank().openAccount(c.getCompanyId());
        c.setBankAccount(bankAccount);

        System.out.println("-----------------------------------------------");

        String taxCode = new Taxation().applyTaxCode(c.getCompanyId());
        c.setTaxCode(taxCode);

        return c;
    }
}